<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>Github Pages 绑定自定义域名 | 咕咕鸽</title><meta name="keywords" content="github"><meta name="author" content="Guguge"><meta name="copyright" content="Guguge"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="如果觉得 GitHub 自动分配的二级域名有点长，还不太好记忆。可以绑定一下自定义域名。 域名购买首先，你得先注册一个域名。 我这用的是阿里云，也可以去腾讯云、GoDaddy等注册也行！！ 阿里云新用户活动界面：https:&#x2F;&#x2F;promotion.aliyun.com&#x2F;ntms&#x2F;act&#x2F;domainbrand.html 阿里云域名1元首年：https:&#x2F;&#x2F;wanwang.aliyun.com&#x2F;do">
<meta property="og:type" content="article">
<meta property="og:title" content="Github Pages 绑定自定义域名">
<meta property="og:url" content="https://guguge.top/blog/domain/index.html">
<meta property="og:site_name" content="咕咕鸽">
<meta property="og:description" content="如果觉得 GitHub 自动分配的二级域名有点长，还不太好记忆。可以绑定一下自定义域名。 域名购买首先，你得先注册一个域名。 我这用的是阿里云，也可以去腾讯云、GoDaddy等注册也行！！ 阿里云新用户活动界面：https:&#x2F;&#x2F;promotion.aliyun.com&#x2F;ntms&#x2F;act&#x2F;domainbrand.html 阿里云域名1元首年：https:&#x2F;&#x2F;wanwang.aliyun.com&#x2F;do">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://guguge.top/blog/domain/cover.jpg">
<meta property="article:published_time" content="2020-11-24T15:57:20.000Z">
<meta property="article:modified_time" content="2021-11-03T06:30:11.165Z">
<meta property="article:author" content="Guguge">
<meta property="article:tag" content="github">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://guguge.top/blog/domain/cover.jpg"><link rel="shortcut icon" href="/media/favicon.png"><link rel="canonical" href="https://guguge.top/blog/domain/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="/pluginsSrc/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="/pluginsSrc/@fancyapps/ui/dist/fancybox.css" media="print" onload="this.media='all'"><script async="async" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><script>(adsbygoogle = window.adsbygoogle || []).push({
  google_ad_client: 'ca-pub-6926818855435149',
  enable_page_level_ads: 'true'
});</script><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: {"path":"/search.xml","preload":false,"languages":{"hits_empty":"找不到您查询的内容：${query}"}},
  translate: {"defaultEncoding":2,"translateDelay":0,"msgToTraditionalChinese":"繁","msgToSimplifiedChinese":"簡"},
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '天',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  source: {
    justifiedGallery: {
      js: '/pluginsSrc/flickr-justified-gallery/dist/fjGallery.min.js',
      css: '/pluginsSrc/flickr-justified-gallery/dist/fjGallery.css'
    }
  },
  isPhotoFigcaption: true,
  islazyload: true,
  isAnchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: 'Github Pages 绑定自定义域名',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2021-11-03 14:30:11'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><meta name="generator" content="Hexo 5.4.2"></head><body><div id="loading-box"><div class="loading-left-bg"></div><div class="loading-right-bg"></div><div class="spinner-box"><div class="configure-border-1"><div class="configure-core"></div></div><div class="configure-border-2"><div class="configure-core"></div></div><div class="loading-word">加载中...</div></div></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src= "" data-lazy-src="/media/avatar.jpg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">4</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">4</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">1</div></a></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 目录</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></li><li><a class="site-page child" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></li><li><a class="site-page child" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/Gallery/"><i class="fa-fw fas fa-images"></i><span> 图库</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 传送门</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background: linear-gradient( 135deg, #E2B0FF 10%, #9F44D3 100%)"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">咕咕鸽</a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 目录</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></li><li><a class="site-page child" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></li><li><a class="site-page child" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/Gallery/"><i class="fa-fw fas fa-images"></i><span> 图库</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 传送门</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">Github Pages 绑定自定义域名</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2020-11-24T15:57:20.000Z" title="发表于 2020-11-24 23:57:20">2020-11-24</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2021-11-03T06:30:11.165Z" title="更新于 2021-11-03 14:30:11">2021-11-03</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/Web/">Web</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-wordcount"><i class="far fa-file-word fa-fw post-meta-icon"></i><span class="post-meta-label">字数总计:</span><span class="word-count">575</span><span class="post-meta-separator">|</span><i class="far fa-clock fa-fw post-meta-icon"></i><span class="post-meta-label">阅读时长:</span><span>1分钟</span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><p>如果觉得 GitHub 自动分配的二级域名有点长，还不太好记忆。可以绑定一下自定义域名。</p>
<h2 id="域名购买"><a href="#域名购买" class="headerlink" title="域名购买"></a>域名购买</h2><p>首先，你得先注册一个域名。</p>
<p>我这用的是阿里云，也可以去腾讯云、GoDaddy等注册也行！！</p>
<p>阿里云新用户活动界面：<a target="_blank" rel="noopener" href="https://promotion.aliyun.com/ntms/act/domainbrand.html">https://promotion.aliyun.com/ntms/act/domainbrand.html</a></p>
<p>阿里云域名1元首年：<a target="_blank" rel="noopener" href="https://wanwang.aliyun.com/domain/1yuan">https://wanwang.aliyun.com/domain/1yuan</a></p>
<p><span style="color:#ff0000">注意：.cn 后缀的好像必须要备案才能正常使用！其它后缀是国内服务器要备案。</span></p>
<hr>
<h2 id="域名解析"><a href="#域名解析" class="headerlink" title="域名解析"></a>域名解析</h2><blockquote>
<p> 购买好域名后打开<code>控制台</code>：</p>
</blockquote>
<p><img src= "" data-lazy-src="1.jpg" alt="控制台"></p>
<blockquote>
<p> 打开：<code>产品与服务</code> —》 <code>域名</code>：</p>
</blockquote>
<p><img src= "" data-lazy-src="2.jpg" alt="域名管理"></p>
<p><span style="color:#ff0000">注意：新购买可能需要实名认证,到实名认证页面上传身份证照片和输入身份证号码就等他认证成功就行了</span></p>
<p>实名认证完继续如下步骤：</p>
<blockquote>
<p>找到你的域名，点击解析：</p>
</blockquote>
<p><img src= "" data-lazy-src="3.jpg" alt="解析域名"></p>
<blockquote>
<p>点击添加记录:</p>
</blockquote>
<p><img src= "" data-lazy-src="4.jpg" alt="添加记录"></p>
<p><img src= "" data-lazy-src="5.jpg" alt="A记录"></p>
<p><img src= "" data-lazy-src="6.jpg" alt="CNAME记录"></p>
<p>填好直接保存就行了。</p>
<p>分别添加 四个<code>A 记录</code> 和 一个 <code>CNAME 记录</code></p>
<p>A 记录需要添加的 ip 如下：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">185.199.108.153</span><br><span class="line">185.199.109.153</span><br><span class="line">185.199.110.153</span><br><span class="line">185.199.111.153</span><br></pre></td></tr></table></figure>
<blockquote>
<p>添加完成后如图：</p>
</blockquote>
<p><img src= "" data-lazy-src="7.jpg" alt="添加完成解析地址"></p>
<hr>
<h3 id="手机客户端"><a href="#手机客户端" class="headerlink" title="手机客户端"></a>手机客户端</h3><p>手机客户端也可以进行域名解析，首先下载阿里云的手机客户端。</p>
<blockquote>
<p>打开登陆后在主页找到<code>域名管理</code>:</p>
</blockquote>
<p><img src= "" data-lazy-src="8.jpg" alt="域名管理"></p>
<blockquote>
<p>找到你的域名，点击旁边的 <code>三点</code>图标，再选择<code>解析</code>:</p>
</blockquote>
<p><img src= "" data-lazy-src="9.jpg" alt="解析域名"></p>
<blockquote>
<p>点击右上角的<code>+加号</code>添加一条解析记录：</p>
</blockquote>
<p>解析内容和上面网页端一样,分别添加 四个<code>A 记录</code> 和 一个 <code>CNAME 记录</code>：</p>
<p><img src= "" data-lazy-src="10.jpg" alt="添加记录完成"></p>
<hr>
<h2 id="修改GitHub-Pages-设置"><a href="#修改GitHub-Pages-设置" class="headerlink" title="修改GitHub Pages 设置"></a>修改GitHub Pages 设置</h2><p>域名解析好就可以到GitHub Pages 设置添加自定义域名了</p>
<blockquote>
<p>打开你的仓库地址，选择 <code>setting</code></p>
</blockquote>
<p><img src= "" data-lazy-src="11.jpg" alt="打开设置"></p>
<blockquote>
<p>左侧菜单找到 <code>Pages</code>，在 Custom domain 处输入你的域名。</p>
</blockquote>
<p>填好域名点击 <code>save</code>  保存就好了！，就会发现你的网址变成了自定义的域名。</p>
<p><img src= "" data-lazy-src="12.jpg" alt="输入自定义域名"></p>
<p>如果下面的HTTPS没有打开建议勾选上。</p>
<p><img src= "" data-lazy-src="13.jpg" alt="https"></p>
<h2 id="补充内容"><a href="#补充内容" class="headerlink" title="补充内容"></a>补充内容</h2><blockquote>
<p>如果你是用 Hexo 生成的静态网站，需要在 <code>source</code> 文件夹内创建个<code>CNAME</code> 文件,如果文件存在则直接打开编辑。<br>用任意文本编辑器打开，把你的域名输入进去，保存就行了。例如，我的域名是<code>guguge.top</code>内容则为：</p>
</blockquote>
<p><img src= "" data-lazy-src="14.jpg" alt="CNAME文件内容"></p>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="https://guguge.top">Guguge</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="https://guguge.top/blog/domain/">https://guguge.top/blog/domain/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://guguge.top" target="_blank">咕咕鸽</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/github/">github</a></div><div class="post_share"><div class="social-share" data-image="/blog/domain/cover.jpg" data-sites="wechat,weibo,qq"></div><link rel="stylesheet" href="/pluginsSrc/social-share.js/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="/pluginsSrc/social-share.js/dist/js/social-share.min.js" defer></script></div></div><div class="post-reward"><div class="reward-button"><i class="fas fa-qrcode"></i> 打赏</div><div class="reward-main"><ul class="reward-all"><li class="reward-item"><a href="/media/wechat.jpg" target="_blank"><img class="post-qr-code-img" src= "" data-lazy-src="/media/wechat.jpg" alt="微信"/></a><div class="post-qr-code-desc">微信</div></li><li class="reward-item"><a href="/media/alipay.jpg" target="_blank"><img class="post-qr-code-img" src= "" data-lazy-src="/media/alipay.jpg" alt="支付宝"/></a><div class="post-qr-code-desc">支付宝</div></li></ul></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/blog/markdown/"><img class="prev-cover" src= "" data-lazy-src="/blog/markdown/cover.jpg" onerror="onerror=null;src='/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">Markdown 基础教程</div></div></a></div><div class="next-post pull-right"><a href="/blog/hexoblogsetup/"><img class="next-cover" src= "" data-lazy-src="/blog/hexoblogsetup/cover.jpg" onerror="onerror=null;src='/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">使用 Hexo 快速免费搭建个人网站</div></div></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src= "" data-lazy-src="/media/avatar.jpg" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">Guguge</div><div class="author-info__description">这是一个没什么特别的站点</div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">4</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">4</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">1</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/guguliu"><i class="fab fa-github"></i><span>Follow Me</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="mailto:guguge-top@qq.com" target="_blank" title="Email"><i class="fas fa-envelope"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">This is my Blog</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%9F%9F%E5%90%8D%E8%B4%AD%E4%B9%B0"><span class="toc-number">1.</span> <span class="toc-text">域名购买</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%9F%9F%E5%90%8D%E8%A7%A3%E6%9E%90"><span class="toc-number">2.</span> <span class="toc-text">域名解析</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%89%8B%E6%9C%BA%E5%AE%A2%E6%88%B7%E7%AB%AF"><span class="toc-number">2.1.</span> <span class="toc-text">手机客户端</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%BF%AE%E6%94%B9GitHub-Pages-%E8%AE%BE%E7%BD%AE"><span class="toc-number">3.</span> <span class="toc-text">修改GitHub Pages 设置</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E8%A1%A5%E5%85%85%E5%86%85%E5%AE%B9"><span class="toc-number">4.</span> <span class="toc-text">补充内容</span></a></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/blog/butterfly/" title="Hexo-butterfly主题设置文档"><img src= "" data-lazy-src="/blog/butterfly/cover.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Hexo-butterfly主题设置文档"/></a><div class="content"><a class="title" href="/blog/butterfly/" title="Hexo-butterfly主题设置文档">Hexo-butterfly主题设置文档</a><time datetime="2021-09-13T12:05:16.000Z" title="发表于 2021-09-13 20:05:16">2021-09-13</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/blog/markdown/" title="Markdown 基础教程"><img src= "" data-lazy-src="/blog/markdown/cover.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Markdown 基础教程"/></a><div class="content"><a class="title" href="/blog/markdown/" title="Markdown 基础教程">Markdown 基础教程</a><time datetime="2021-09-10T08:32:09.000Z" title="发表于 2021-09-10 16:32:09">2021-09-10</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/blog/domain/" title="Github Pages 绑定自定义域名"><img src= "" data-lazy-src="/blog/domain/cover.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Github Pages 绑定自定义域名"/></a><div class="content"><a class="title" href="/blog/domain/" title="Github Pages 绑定自定义域名">Github Pages 绑定自定义域名</a><time datetime="2020-11-24T15:57:20.000Z" title="发表于 2020-11-24 23:57:20">2020-11-24</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/blog/hexoblogsetup/" title="使用 Hexo 快速免费搭建个人网站"><img src= "" data-lazy-src="/blog/hexoblogsetup/cover.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="使用 Hexo 快速免费搭建个人网站"/></a><div class="content"><a class="title" href="/blog/hexoblogsetup/" title="使用 Hexo 快速免费搭建个人网站">使用 Hexo 快速免费搭建个人网站</a><time datetime="2020-09-10T12:18:30.000Z" title="发表于 2020-09-10 20:18:30">2020-09-10</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2022 By Guguge</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="translateLink" type="button" title="简繁转换">繁</button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div id="local-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><span id="loading-status"></span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="is-center" id="loading-database"><i class="fas fa-spinner fa-pulse"></i><span>  数据库加载中</span></div><div class="search-wrap"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div><hr/><div id="local-search-results"></div></div></div><div id="search-mask"></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="/js/tw_cn.js"></script><script src="/pluginsSrc/@fancyapps/ui/dist/fancybox.umd.js"></script><script src="/pluginsSrc/vanilla-lazyload/dist/lazyload.iife.min.js"></script><script src="/js/search/local-search.js"></script><script>var preloader = {
  endLoading: () => {
    document.body.style.overflow = 'auto';
    document.getElementById('loading-box').classList.add("loaded")
  },
  initLoading: () => {
    document.body.style.overflow = '';
    document.getElementById('loading-box').classList.remove("loaded")

  }
}
window.addEventListener('load',preloader.endLoading())</script><div class="js-pjax"><script>(() => {
  const $mermaidWrap = document.querySelectorAll('#article-container .mermaid-wrap')
  if ($mermaidWrap.length) {
    window.runMermaid = () => {
      window.loadMermaid = true
      const theme = document.documentElement.getAttribute('data-theme') === 'dark' ? '' : ''

      Array.from($mermaidWrap).forEach((item, index) => {
        const mermaidSrc = item.firstElementChild
        const mermaidThemeConfig = '%%{init:{ \'theme\':\'' + theme + '\'}}%%\n'
        const mermaidID = 'mermaid-' + index
        const mermaidDefinition = mermaidThemeConfig + mermaidSrc.textContent
        mermaid.mermaidAPI.render(mermaidID, mermaidDefinition, (svgCode) => {
          mermaidSrc.insertAdjacentHTML('afterend', svgCode)
        })
      })
    }

    const loadMermaid = () => {
      window.loadMermaid ? runMermaid() : getScript('/pluginsSrc/mermaid/dist/mermaid.min.js').then(runMermaid)
    }

    window.pjax ? loadMermaid() : document.addEventListener('DOMContentLoaded', loadMermaid)
  }
})()</script></div><div class="aplayer no-destroy" data-id="7675104902" data-server="tencent" data-type="playlist" data-fixed="true" data-mini="true" data-listFolded="false" data-order="random" data-preload="none" data-autoplay="true" muted></div><script defer="defer" id="fluttering_ribbon" mobile="false" src="/pluginsSrc/butterfly-extsrc/dist/canvas-fluttering-ribbon.min.js"></script><script id="click-heart" src="/pluginsSrc/butterfly-extsrc/dist/click-heart.min.js" async="async" mobile="true"></script><link rel="stylesheet" href="/pluginsSrc/aplayer/dist/APlayer.min.css" media="print" onload="this.media='all'"><script src="/pluginsSrc/aplayer/dist/APlayer.min.js"></script><script src="/pluginsSrc/butterfly-extsrc/dist/Meting.min.js"></script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div><script src="/live2d_models/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginRootPath":"live2d_models/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"debug":false,"model":{"jsonPath":"/live2d_models/assets/wanko.model.json"},"display":{"position":"left","width":100,"height":150,"hOffset":-10,"vOffset":40},"mobile":{"show":true},"react":{"opacity":0.7},"log":false});</script></body></html>